<template>
  <div>
    <!-- 搜索筛选 -->
    <el-form :inline="true" :model="formInline" class="user-search">
      <el-form-item label="试题题干：">
        <el-input size="small" v-model="formInline.title" placeholder="请输入"></el-input>
      </el-form-item>
      <el-form-item label="试题类型：">
        <el-input size="small" v-model="formInline.type" placeholder="请输入"></el-input>
      </el-form-item>
      <el-form-item label="试题难度：">
        <el-input size="small" v-model="formInline.hardLevel" placeholder="请输入"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button size="small" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
      </el-form-item>
      <el-form-item>
        <el-button @click="resetForm('formInline')">重置</el-button>
    </el-form-item>
    </el-form>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        formInline: {},//搜索里面的信息
      }
    },
    methods: {
      resetForm(formName) {
        this.$refs[formName].resetFields();
      },
    }
  }
</script>